<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Point</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="autorzy: Elwira Kowalewska, Piotr Karolus, Kacper Kapu&#347;niak grupa 21K7">
Modelowanie i symulacja zderze&#324; spr&#281;&#380;ystych
</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Module&nbsp;Point
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Point-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="Point-module.html">Module Point</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># -*- coding: utf-8 -*-</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-docstring">Modu&#322; odpowiedzialny za przeprowadzanie operacji na punktach.</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-docstring">B{Modu&#322; zawiera:}</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-docstring">    1. Klasa Point</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-docstring">        - Metoda __init__</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-docstring">        - Metoda getPositionX</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-docstring">        - Metoda getPositionY</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-docstring">        - Metoda setPositionX</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-docstring">        - Metoda setPositionY</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-docstring">        - Metoda getDistanceToPoint</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-docstring">        - Metoda getDistanceToLine</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-docstring">        - Metoda substractPoint</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-docstring">        - Metoda moveByVector</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">        - Metoda moveAgainstVector</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">__future__</tt> <tt class="py-keyword">import</tt> <tt class="py-name">unicode_literals</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">math</tt> <tt class="py-keyword">import</tt> <tt class="py-name">sqrt</tt><tt class="py-op">,</tt> <tt class="py-name">fabs</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module Vectors=Vectors-module.html"><a title="Vectors" class="py-name" href="#" onclick="return doclink('link-0', 'Vectors', 'link-0');">Vectors</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Class Vectors.Vector=Vectors.Vector-class.html"><a title="Vectors.Vector" class="py-name" href="#" onclick="return doclink('link-1', 'Vector', 'link-1');">Vector</a></tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"> </tt>
<a name="Point"></a><div id="Point-def"><a name="L26"></a><tt class="py-lineno"> 26</tt> <a class="py-toggle" href="#" id="Point-toggle" onclick="return toggle('Point');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Point.Point-class.html">Point</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Point-expanded"><a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"><tt class="py-docstring">    Klasa reprezentuj&#261;ca obiekt punktu w uk&#322;adzie wsp&#243;&#322;rz&#281;dnych.</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">     </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">     </tt>
<a name="Point.__init__"></a><div id="Point.__init__-def"><a name="L32"></a><tt class="py-lineno"> 32</tt> <a class="py-toggle" href="#" id="Point.__init__-toggle" onclick="return toggle('Point.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Point.Point-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">positionX</tt><tt class="py-op">,</tt> <tt class="py-param">positionY</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Point.__init__-expanded"><a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt class="py-docstring">        Konstruktor tworzy obiekt punktu o podanych wsp&#243;&#322;rz&#281;dnych.</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"><tt class="py-docstring">        @param positionX: Parametr okre&#347;laj&#261;cy wsp&#243;&#322;rz&#281;dn&#261; punktu na osi X.</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"><tt class="py-docstring">        @param positionY: Parametr okre&#347;laj&#261;cy wsp&#243;&#322;rz&#281;dn&#261; punktu na osi Y.</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">         </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_PositionX</tt> <tt class="py-op">=</tt> <tt class="py-name">positionX</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_PositionY</tt> <tt class="py-op">=</tt> <tt class="py-name">positionY</tt> </tt>
</div><a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">     </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">     </tt>
<a name="Point.getPositionX"></a><div id="Point.getPositionX-def"><a name="L44"></a><tt class="py-lineno"> 44</tt> <a class="py-toggle" href="#" id="Point.getPositionX-toggle" onclick="return toggle('Point.getPositionX');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Point.Point-class.html#getPositionX">getPositionX</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point.getPositionX-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Point.getPositionX-expanded"><a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line"><tt class="py-docstring">        Funkcja zwracaj&#261;ca po&#322;o&#380;enie X punktu.</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"><tt class="py-docstring">        @return: Wsp&#243;&#322;rz&#281;dn&#261; punktu na osi X.</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">         </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_PositionX</tt> </tt>
</div><a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">     </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">     </tt>
<a name="Point.getPositionY"></a><div id="Point.getPositionY-def"><a name="L54"></a><tt class="py-lineno"> 54</tt> <a class="py-toggle" href="#" id="Point.getPositionY-toggle" onclick="return toggle('Point.getPositionY');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Point.Point-class.html#getPositionY">getPositionY</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point.getPositionY-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Point.getPositionY-expanded"><a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line"><tt class="py-docstring">        Funkcja zwracaj&#261;ca po&#322;o&#380;enie Y punktu.</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line"><tt class="py-docstring">        @return: Wsp&#243;&#322;rz&#281;dn&#261; punktu na osi Y.</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">         </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_PositionY</tt> </tt>
</div><a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">     </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">     </tt>
<a name="Point.setPositionX"></a><div id="Point.setPositionX-def"><a name="L64"></a><tt class="py-lineno"> 64</tt> <a class="py-toggle" href="#" id="Point.setPositionX-toggle" onclick="return toggle('Point.setPositionX');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Point.Point-class.html#setPositionX">setPositionX</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">positionX</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point.setPositionX-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Point.setPositionX-expanded"><a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line"><tt class="py-docstring">        Funkcja ustawiaj&#261;ca po&#322;o&#380;enie X punktu.</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line"><tt class="py-docstring">        @param positionX: Parametr okre&#347;laj&#261;cy wsp&#243;&#322;rz&#281;dn&#261; punktu na osi X.</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">         </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_PositionX</tt> <tt class="py-op">=</tt> <tt class="py-name">positionX</tt> </tt>
</div><a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">     </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">     </tt>
<a name="Point.setPositionY"></a><div id="Point.setPositionY-def"><a name="L74"></a><tt class="py-lineno"> 74</tt> <a class="py-toggle" href="#" id="Point.setPositionY-toggle" onclick="return toggle('Point.setPositionY');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Point.Point-class.html#setPositionY">setPositionY</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">positionY</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point.setPositionY-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Point.setPositionY-expanded"><a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"><tt class="py-docstring">        Funkcja ustawiaj&#261;ca po&#322;o&#380;enie Y punktu.</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line"><tt class="py-docstring">        @param positionY: Parametr okre&#347;laj&#261;cy wsp&#243;&#322;rz&#281;dn&#261; punktu na osi Y.</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">         </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_PositionY</tt> <tt class="py-op">=</tt> <tt class="py-name">positionY</tt> </tt>
</div><a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">     </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">     </tt>
<a name="Point.getDistanceToPoint"></a><div id="Point.getDistanceToPoint-def"><a name="L84"></a><tt class="py-lineno"> 84</tt> <a class="py-toggle" href="#" id="Point.getDistanceToPoint-toggle" onclick="return toggle('Point.getDistanceToPoint');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Point.Point-class.html#getDistanceToPoint">getDistanceToPoint</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">point</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point.getDistanceToPoint-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Point.getDistanceToPoint-expanded"><a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"><tt class="py-docstring">        Funkcja zwracaj&#261;ca odleg&#322;o&#347;&#263; mi&#281;dzy punktami.</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line"><tt class="py-docstring">        @param point: Parametr okre&#347;laj&#261;cy wsp&#243;&#322;rz&#281;dne punktu.</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"><tt class="py-docstring">        @return: Odleg&#322;o&#347;&#263; mi&#281;dzy punktami:</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line"><tt class="py-docstring">            M{sqrt((X2-X1)^2 + (Y2-Y1)^2)}</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">         </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">sqrt</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Method Point.Point.getPositionX()=Point.Point-class.html#getPositionX"><a title="Point.Point.getPositionX" class="py-name" href="#" onclick="return doclink('link-2', 'getPositionX', 'link-2');">getPositionX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-name">point</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="Point.Point.getPositionX" class="py-name" href="#" onclick="return doclink('link-3', 'getPositionX', 'link-2');">getPositionX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">**</tt><tt class="py-number">2</tt> <tt class="py-op">+</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Method Point.Point.getPositionY()=Point.Point-class.html#getPositionY"><a title="Point.Point.getPositionY" class="py-name" href="#" onclick="return doclink('link-4', 'getPositionY', 'link-4');">getPositionY</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-name">point</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="Point.Point.getPositionY" class="py-name" href="#" onclick="return doclink('link-5', 'getPositionY', 'link-4');">getPositionY</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">**</tt><tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
</div><a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">     </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">     </tt>
<a name="Point.getDistanceToLine"></a><div id="Point.getDistanceToLine-def"><a name="L97"></a><tt class="py-lineno"> 97</tt> <a class="py-toggle" href="#" id="Point.getDistanceToLine-toggle" onclick="return toggle('Point.getDistanceToLine');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Point.Point-class.html#getDistanceToLine">getDistanceToLine</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">point1</tt><tt class="py-op">,</tt> <tt class="py-param">point2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point.getDistanceToLine-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Point.getDistanceToLine-expanded"><a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"><tt class="py-docstring">        Funkcja zwracaj&#261;ca najmniejsz&#261; odleg&#322;o&#347;&#263; mi&#281;dzy punktem, a prost&#261;</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"><tt class="py-docstring">        przechodz&#261;ca przez dwa podane w parametrach punkty.</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line"><tt class="py-docstring">        Uwaga! Funkcja zwraca odleg&#322;o&#347;&#263; r&#243;wn&#261; d&#322;ugo&#347;ci lewego wektora </tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line"><tt class="py-docstring">        normalnego pomno&#380;onego przez odleg&#322;o&#347;&#263; punktu od prostej, zbudowanego</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line"><tt class="py-docstring">        z wektora (point1, point2). Je&#347;li odleg&#322;o&#347;&#263; ta powinna by&#263; zbudowana</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line"><tt class="py-docstring">        na prawym wektorze normalnym, to jej warto&#347;&#263; b&#281;dzie ujemna. Aby temu</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line"><tt class="py-docstring">        zapobiec mo&#380;na zmieni&#263; kolejno&#347;&#263; podawanych w parametrach punkt&#243;w.</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"><tt class="py-docstring">        @param point1: Parametr okre&#347;laj&#261;cy punkt b&#281;d&#261;cy pocz&#261;tkiem lini.</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"><tt class="py-docstring">        @param point2: Parametr okre&#347;laj&#261;cy punkt b&#281;d&#261;cy ko&#324;cem lini.</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line"><tt class="py-docstring">        @return: Odleg&#322;o&#347;&#263; punktu od prostej.</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">         </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">        <tt class="py-comment"># wektor jednostkowy z punktu1 do punktu2</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">        <tt class="py-name">ab</tt> <tt class="py-op">=</tt> <tt id="link-6" class="py-name"><a title="Vectors.Vector" class="py-name" href="#" onclick="return doclink('link-6', 'Vector', 'link-1');">Vector</a></tt><tt class="py-op">(</tt><tt class="py-name">point2</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name"><a title="Point.Point.getPositionX" class="py-name" href="#" onclick="return doclink('link-7', 'getPositionX', 'link-2');">getPositionX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-name">point1</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name"><a title="Point.Point.getPositionX" class="py-name" href="#" onclick="return doclink('link-8', 'getPositionX', 'link-2');">getPositionX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">point2</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name"><a title="Point.Point.getPositionY" class="py-name" href="#" onclick="return doclink('link-9', 'getPositionY', 'link-4');">getPositionY</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-name">point1</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="Point.Point.getPositionY" class="py-name" href="#" onclick="return doclink('link-10', 'getPositionY', 'link-4');">getPositionY</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">        <tt class="py-name">ab</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Method Vectors.Vector.multiplyVector()=Vectors.Vector-class.html#multiplyVector"><a title="Vectors.Vector.multiplyVector" class="py-name" href="#" onclick="return doclink('link-11', 'multiplyVector', 'link-11');">multiplyVector</a></tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">/</tt><tt class="py-name">ab</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Method Vectors.Vector.getVectorLength()=Vectors.Vector-class.html#getVectorLength"><a title="Vectors.Vector.getVectorLength" class="py-name" href="#" onclick="return doclink('link-12', 'getVectorLength', 'link-12');">getVectorLength</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">         </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">        <tt class="py-comment"># wektor normalny do wektora p1p2</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">        <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt id="link-13" class="py-name"><a title="Vectors.Vector" class="py-name" href="#" onclick="return doclink('link-13', 'Vector', 'link-1');">Vector</a></tt><tt class="py-op">(</tt><tt class="py-op">-</tt><tt class="py-name">ab</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Method Vectors.Vector.getVy()=Vectors.Vector-class.html#getVy"><a title="Vectors.Vector.getVy" class="py-name" href="#" onclick="return doclink('link-14', 'getVy', 'link-14');">getVy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">ab</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name" targets="Method Vectors.Vector.getVx()=Vectors.Vector-class.html#getVx"><a title="Vectors.Vector.getVx" class="py-name" href="#" onclick="return doclink('link-15', 'getVx', 'link-15');">getVx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">         </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">        <tt class="py-comment"># wektor od punktu a do c (c = self)</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt class="py-name">ac</tt> <tt class="py-op">=</tt> <tt id="link-16" class="py-name"><a title="Vectors.Vector" class="py-name" href="#" onclick="return doclink('link-16', 'Vector', 'link-1');">Vector</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="Point.Point.getPositionX" class="py-name" href="#" onclick="return doclink('link-17', 'getPositionX', 'link-2');">getPositionX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-name">point1</tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="Point.Point.getPositionX" class="py-name" href="#" onclick="return doclink('link-18', 'getPositionX', 'link-2');">getPositionX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="Point.Point.getPositionY" class="py-name" href="#" onclick="return doclink('link-19', 'getPositionY', 'link-4');">getPositionY</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-name">point1</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="Point.Point.getPositionY" class="py-name" href="#" onclick="return doclink('link-20', 'getPositionY', 'link-4');">getPositionY</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">         </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">ac</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="Vectors.Vector.getVx" class="py-name" href="#" onclick="return doclink('link-21', 'getVx', 'link-15');">getVx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">*</tt><tt class="py-name">n</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="Vectors.Vector.getVx" class="py-name" href="#" onclick="return doclink('link-22', 'getVx', 'link-15');">getVx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">ac</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name"><a title="Vectors.Vector.getVy" class="py-name" href="#" onclick="return doclink('link-23', 'getVy', 'link-14');">getVy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">*</tt><tt class="py-name">n</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="Vectors.Vector.getVy" class="py-name" href="#" onclick="return doclink('link-24', 'getVy', 'link-14');">getVy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">     </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">     </tt>
<a name="Point.substractPoint"></a><div id="Point.substractPoint-def"><a name="L127"></a><tt class="py-lineno">127</tt> <a class="py-toggle" href="#" id="Point.substractPoint-toggle" onclick="return toggle('Point.substractPoint');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Point.Point-class.html#substractPoint">substractPoint</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">anotherPoint</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point.substractPoint-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Point.substractPoint-expanded"><a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line"><tt class="py-docstring">        Funkcja obliczaj&#261;ca wektor b&#281;d&#261;cy r&#243;&#380;nic&#261; punktu, na rzecz kt&#243;rego</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line"><tt class="py-docstring">        zosta&#322;a wywo&#322;ana i punktu przekazanego w parametrze.</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"><tt class="py-docstring">        @param anotherPoint: Parametr okre&#347;laj&#261;cy punkt, o kt&#243;rego wsp&#243;&#322;rz&#281;dne</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"><tt class="py-docstring">        nale&#380;y pomniejszy&#263; wsp&#243;&#322;rz&#281;dne bie&#380;&#261;cego punktu.</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line"><tt class="py-docstring">        @return: Wektor b&#281;d&#261;cy r&#243;&#380;nic&#261; punkt&#243;w.</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">         </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-25" class="py-name"><a title="Vectors.Vector" class="py-name" href="#" onclick="return doclink('link-25', 'Vector', 'link-1');">Vector</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="Point.Point.getPositionX" class="py-name" href="#" onclick="return doclink('link-26', 'getPositionX', 'link-2');">getPositionX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-name">anotherPoint</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="Point.Point.getPositionX" class="py-name" href="#" onclick="return doclink('link-27', 'getPositionX', 'link-2');">getPositionX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-28" class="py-name"><a title="Point.Point.getPositionY" class="py-name" href="#" onclick="return doclink('link-28', 'getPositionY', 'link-4');">getPositionY</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-name">anotherPoint</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="Point.Point.getPositionY" class="py-name" href="#" onclick="return doclink('link-29', 'getPositionY', 'link-4');">getPositionY</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">     </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">     </tt>
<a name="Point.moveByVector"></a><div id="Point.moveByVector-def"><a name="L141"></a><tt class="py-lineno">141</tt> <a class="py-toggle" href="#" id="Point.moveByVector-toggle" onclick="return toggle('Point.moveByVector');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Point.Point-class.html#moveByVector">moveByVector</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">vector</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point.moveByVector-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Point.moveByVector-expanded"><a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line"><tt class="py-docstring">        Procedura przesuwaj&#261;ca punkt o podany w parametrze wektor w kierunku zgodnym.</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line"><tt class="py-docstring">        @param vector: Parametr okre&#347;laj&#261;cy sk&#322;adowe wektora na osiach X i Y.</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">         </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-30" class="py-name" targets="Method Ball.Ball.setPositionX()=Ball.Ball-class.html#setPositionX,Method Point.Point.setPositionX()=Point.Point-class.html#setPositionX"><a title="Ball.Ball.setPositionX
Point.Point.setPositionX" class="py-name" href="#" onclick="return doclink('link-30', 'setPositionX', 'link-30');">setPositionX</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="Point.Point.getPositionX" class="py-name" href="#" onclick="return doclink('link-31', 'getPositionX', 'link-2');">getPositionX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">vector</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="Vectors.Vector.getVx" class="py-name" href="#" onclick="return doclink('link-32', 'getVx', 'link-15');">getVx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name" targets="Method Ball.Ball.setPositionY()=Ball.Ball-class.html#setPositionY,Method Point.Point.setPositionY()=Point.Point-class.html#setPositionY"><a title="Ball.Ball.setPositionY
Point.Point.setPositionY" class="py-name" href="#" onclick="return doclink('link-33', 'setPositionY', 'link-33');">setPositionY</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="Point.Point.getPositionY" class="py-name" href="#" onclick="return doclink('link-34', 'getPositionY', 'link-4');">getPositionY</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">vector</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name"><a title="Vectors.Vector.getVy" class="py-name" href="#" onclick="return doclink('link-35', 'getVy', 'link-14');">getVy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">     </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">     </tt>
<a name="Point.moveAgainstVector"></a><div id="Point.moveAgainstVector-def"><a name="L152"></a><tt class="py-lineno">152</tt> <a class="py-toggle" href="#" id="Point.moveAgainstVector-toggle" onclick="return toggle('Point.moveAgainstVector');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Point.Point-class.html#moveAgainstVector">moveAgainstVector</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">vector</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Point.moveAgainstVector-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Point.moveAgainstVector-expanded"><a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line"><tt class="py-docstring">        Procedura przesuwaj&#261;ca punkt o podany w parametrze wektor w kierunku przeciwnym.</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line"><tt class="py-docstring">        @param vector: Parametr okre&#347;laj&#261;cy sk&#322;adowe wektora na osiach X i Y.</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">         </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name"><a title="Ball.Ball.setPositionX
Point.Point.setPositionX" class="py-name" href="#" onclick="return doclink('link-36', 'setPositionX', 'link-30');">setPositionX</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-37" class="py-name"><a title="Point.Point.getPositionX" class="py-name" href="#" onclick="return doclink('link-37', 'getPositionX', 'link-2');">getPositionX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">vector</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name"><a title="Vectors.Vector.getVx" class="py-name" href="#" onclick="return doclink('link-38', 'getVx', 'link-15');">getVx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name"><a title="Ball.Ball.setPositionY
Point.Point.setPositionY" class="py-name" href="#" onclick="return doclink('link-39', 'setPositionY', 'link-33');">setPositionY</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="Point.Point.getPositionY" class="py-name" href="#" onclick="return doclink('link-40', 'getPositionY', 'link-4');">getPositionY</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">vector</tt><tt class="py-op">.</tt><tt id="link-41" class="py-name"><a title="Vectors.Vector.getVy" class="py-name" href="#" onclick="return doclink('link-41', 'getVy', 'link-14');">getVy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="autorzy: Elwira Kowalewska, Piotr Karolus, Kacper Kapu&#347;niak grupa 21K7">
Modelowanie i symulacja zderze&#324; spr&#281;&#380;ystych
</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Jan 29 03:27:58 2014
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
